package cn.homework.day07;

import java.util.HashSet;

public class Test03 {
    public static void main(String[] args) {
        HashSet<Roommate> set = new HashSet<>();
        set.add(new Roommate("王五", 18));
        set.add(new Roommate("张三", 20));
        set.add(new Roommate("张三", 20));
        System.out.println(set);
    }
}
